package com.yuan.java.thread.multhread;

/**
 * Created by yuan on 2017/7/25.
 */
public class SimpleThread implements Runnable {

    private int i;

    public SimpleThread(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(1000 * i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName() + "hello world");
    }
}
